xend: Fix for op_pincpu in SrvDomain.py
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 27 Apr 2009 14:42:38 +0000 (15:42 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 27 Apr 2009 14:42:38 +0000 (15:42 +0100)
commit55a21ac0878b1e3c418775c424c514e662fb30a7
tree5133159fcbdc3fae96ff93f54ac1c6bcb680eba0
parent0d5ae43e5ff9bda4b7bdb1ab71b0a58a1b8e6857
xend: Fix for op_pincpu in SrvDomain.py

op_pincpu method in SrvDomain.py does not currently work because
op_pincpu method gives string objects to a cpumap argument of
domain_pincpu method in XendDomain.py though the cpumap argument
expects list objects.

This patch solves the above problem as follows.

op_pincpu method gives string objects to the cpumap argument as is,
because op_pincpu method cannot give list objects to the cpumap
argument.
Instead, domain_pincpu method expects that the cpumap argument is
string objects, then domain_pincpu method converts the cpumap
argument into list objects.
Also, the patch modifies two methods (except for op_pincpu method)
calling domain_pincpu method.  The methods give string objects to
the cpumap argument instead of list objects.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
tools/python/xen/xend/XendAPI.py
tools/python/xen/xend/XendDomain.py
tools/python/xen/xm/main.py